package com.hu.mapper;

import com.hu.pojo.MusicList;
import com.hu.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

//这个注解表明是mybatis的mapper类:Dao层
@Mapper
@Repository
public interface MusicListMapping {
    List<MusicList> queryAll();

    int addMusicList(MusicList musicList);
    int deleteMusicList(Integer id);
    int updateMusicList(MusicList musicList);
    MusicList quaryById(Integer id);

    List<MusicList> queryByUser(Integer userId);
}
